package ma.ensao.evalmetrics.model;

import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;

//Mapping de la table des resultats des metrics calculé par classe et le bean result
@Entity
@Table(name ="classeresult")
public class ResultClasse {
	private Long id;
	private Long idProjet;
	private int idtest;
	private String ClasseName;
	private double wmc;
	private double ca;
	private double ce;
	private double instab;
	private double D;
	private int nom;
	private java.util.Date date = new java.util.Date();
	private double dit;
	
	@Id
	@GeneratedValue
	@Column(name = "id")
	public Long getId() {
		return id;
	}
	public void setId(Long id) {
		this.id = id;
	}
	
	
	@Column(name ="idProjet")
	public Long getIdProjet() {
		return idProjet;
	}
	public void setIdProjet(Long idProjet) {
		this.idProjet = idProjet;
	}
	@Column(name = "idtest")
	public int getIdtest() {
		return idtest;
	}
	public void setIdtest(int idtest) {
		this.idtest = idtest;
	}
	@Column(name = "classename")
	public String getClasseName() {
		return ClasseName;
	}
	public void setClasseName(String classeName) {
		ClasseName = classeName;
	}
	@Column(name = "WMC")
	public double getWmc() {
		return wmc;
	}
	public void setWmc(double wmc) {
		this.wmc = wmc;
	}
	@Column(name = "CA")
	public double getCa() {
		return ca;
	}
	public void setCa(double ca) {
		this.ca = ca;
	}
	@Column(name = "CE")
	public double getCe() {
		return ce;
	}
	public void setCe(double ce) {
		this.ce = ce;
	}
	@Column(name = "D")
	public double getD() {
		return D;
	}
	public void setD(double d) {
		D = d;
	}
	@Column(name = "NOM")
	public int getNom() {
		return nom;
	}
	public void setNom(int nom) {
		this.nom = nom;
	}
	@Column(name = "DIT")
	public double getDit() {
		return dit;
	}
	public void setDit(double dit) {
		this.dit = dit;
	}
	@Column(name = "instab")
	public double getInstab() {
		return instab;
	}
	public void setInstab(double instab) {
		this.instab = instab;
	}
	
	@Column(name = "date")
	public Date getDate() {
		return date;
	}
	public void setDate(Date date) {
		this.date = date;
	}
	
	
}
